:root {
  --vt-c-white-soft: #f5f7fa;
  --vt-c-black-soft: #333;
  --color-base-fill: var(--el-color-primary-light-9);
  --color-scroll-background: rgba(192, 196, 204, 0.8);
  --color-background-soft: var(--vt-c-white-soft);
  --color-scroll-background-hover: #c0c4cc;
  --color-tab-button-split: #d8d8d8;
}

:root.dark {
  --color-base-fill: #1c1c35;
  --color-scroll-background: rgba(96, 102, 102, 0.8);
  --color-scroll-background-hover: #606666;
  --color-background-soft: var(--vt-c-black-soft);
  --color-background: #151e29;
  --color-tab-button-split: #6c6e72;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);

    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);

    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  transition:
    color 0.5s,
    background-color 0.5s;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.frosted-glass {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
